#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/11 14:07
# @Author  : jeff
# @FileName: user_controller
from flask import Blueprint
from src.service.user_service import Login
from src.vo.response import response

user_config = Blueprint('user', __name__, url_prefix='/')


class UserConfig(object):
    @staticmethod
    @user_config.route('v1/login', methods=['POST'])
    def login_new():
        """
        Log in
        :return:
        """
        return response(Login.login_service())
